home *** CD-ROM | disk | FTP | other *** search
- on hit
- global fire1, fire2, fire3, fire4, aliencast, alienblow
- repeat with q = 3 to 35
- set aliencast to the castNum of sprite q
- if (fire1 > 0) and (getAt(alienblow, q - 2) = 6) and sprite q intersects 41 then
- set the castNum of sprite q to 7
- deleteAt(alienblow, q - 2)
- addAt(alienblow, q - 2, 7)
- set fire1 to 0
- puppetSound(2, "BOOM")
- end if
- if (fire2 > 0) and (getAt(alienblow, q - 2) = 6) and sprite q intersects 42 then
- set the castNum of sprite q to 7
- deleteAt(alienblow, q - 2)
- addAt(alienblow, q - 2, 7)
- set fire2 to 0
- puppetSound(2, "BOOM")
- end if
- if (fire3 > 0) and (getAt(alienblow, q - 2) = 6) and sprite q intersects 43 then
- set the castNum of sprite q to 7
- deleteAt(alienblow, q - 2)
- addAt(alienblow, q - 2, 7)
- set fire3 to 0
- puppetSound(2, "BOOM")
- end if
- if (fire4 > 0) and (getAt(alienblow, q - 2) = 6) and sprite q intersects 44 then
- set the castNum of sprite q to 7
- deleteAt(alienblow, q - 2)
- addAt(alienblow, q - 2, 7)
- set fire4 to 0
- puppetSound(2, "BOOM")
- end if
- end repeat
- end
-